<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action=""  method="post" id="cp-form">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md9">
                    <table class="layui-table">
                        <tr>
                            <td>
                                标题 <span class="request-tips">*</span>
                            </td>
                            <td>
                                <input type="text" placeholder="标题" name="post_title" class="layui-input">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                关键词 <span class="request-tips">*</span>
                            </td>
                            <td>
                                <input type="text" placeholder="关键词" name="post_keywords" class="layui-input">
                                <div class="layui-word-aux">多关键词之间用英文逗号隔开</div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                文章来源
                            </td>
                            <td>
                                <input type="text" placeholder="请输入文章来源" name="post_source" class="layui-input">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                摘要
                            </td>
                            <td>
                                <textarea name="post_excerpt" id="" cols="10" rows="10" class="layui-textarea"  style="height: 20px"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td width="120">
                                内容
                            </td>
                            <td>
                                <script id="container" type="text/plain" name="post_content" ></script>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                相册
                            </td>
                            <td>
                                <button type="button" class="layui-btn layui-btn-xs" id="test1">
                                    <i class="layui-icon">&#xe67c;</i>
                                    选择图片
                                </button>
                                <table class="layui-table app-photos"></table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                附件
                            </td>
                            <td>
                                <button type="button" class="layui-btn layui-btn-xs" id="test2">
                                    <i class="layui-icon">&#xe67c;</i>
                                    选择附件
                                </button>
                                <table class="layui-table attachment"></table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                音频
                            </td>
                            <td>
                                <button type="button" class="layui-btn layui-btn-xs" id="test3">
                                    <i class="layui-icon">&#xe67c;</i>
                                    选择音频
                                </button>
                                <table class="layui-table audios"></table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                视频
                            </td>
                            <td>
                                <button type="button" class="layui-btn layui-btn-xs" id="test4">
                                    <i class="layui-icon">&#xe67c;</i>
                                    选择视频
                                </button>
                                <table class="layui-table videos"></table>
                            </td>
                        </tr>
                        <tr>
                            <td width="80">缩略图</td>
                            <td>
                                <button type="button" class="layui-btn layui-btn-xs" id="test5">
                                    <i class="layui-icon">&#xe67c;</i>
                                    选择图片
                                </button>
                                <table class="layui-table thumbnail" >
                                </table>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="layui-col-md3">
                    <table class="layui-table">
                        <tr>
                            <td>发布时间</td>
                            <td>
                                <input type="text" id="publishedTime" name="published_time" placeholder="发布时间" value="{:date('Y-m-d H:i:s')}" class="layui-input">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">状态</td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="checkbox" name="post_status" value="1" title="发布" checked lay-skin="primary" class="layui-input">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="checkbox" name="is_top" value="1" title="置顶"  lay-skin="primary" class="layui-input">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="checkbox" name="recommended" value="1" title="推荐"  lay-skin="primary" class="layui-input">
                            </td>
                        </tr>
                        <tr>
                            <td>应用标识</td>
                            <td>
                                <input type="text" class="layui-input" name="app_logo" value="" placeholder="应用标识，请在应用管理中查看">
                            </td>
                        </tr>
                        <tr>
                            <td>应用类型</td>
                            <td>
                                <select name="app_type" id="ap_type">
                                    <option value="0" selected>通用</option>
                                    <option value="1" >网站</option>
                                    <option value="2" >app</option>
                                    <option value="3" >小程序</option>
                                </select>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <input type="hidden" name="user_id" value="{:get_user('id')}">
                    <input type="hidden" name="doc_id" value="{$docId}">
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <a href="javascript:history.go(-1);" class="layui-btn layui-btn-primary" >返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
